package com.tro.generator.entity;

import com.tro.common.util.mybatis.Page;
import java.util.ArrayList;
import java.util.List;

public class GenDicConfigExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public GenDicConfigExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andColIdIsNull() {
            addCriterion("COL_ID is null");
            return (Criteria) this;
        }

        public Criteria andColIdIsNotNull() {
            addCriterion("COL_ID is not null");
            return (Criteria) this;
        }

        public Criteria andColIdEqualTo(String value) {
            addCriterion("COL_ID =", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotEqualTo(String value) {
            addCriterion("COL_ID <>", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdGreaterThan(String value) {
            addCriterion("COL_ID >", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdGreaterThanOrEqualTo(String value) {
            addCriterion("COL_ID >=", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdLessThan(String value) {
            addCriterion("COL_ID <", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdLessThanOrEqualTo(String value) {
            addCriterion("COL_ID <=", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdLike(String value) {
            addCriterion("COL_ID like", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotLike(String value) {
            addCriterion("COL_ID not like", value, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdIn(List<String> values) {
            addCriterion("COL_ID in", values, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotIn(List<String> values) {
            addCriterion("COL_ID not in", values, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdBetween(String value1, String value2) {
            addCriterion("COL_ID between", value1, value2, "colId");
            return (Criteria) this;
        }

        public Criteria andColIdNotBetween(String value1, String value2) {
            addCriterion("COL_ID not between", value1, value2, "colId");
            return (Criteria) this;
        }

        public Criteria andDicTableIsNull() {
            addCriterion("DIC_TABLE is null");
            return (Criteria) this;
        }

        public Criteria andDicTableIsNotNull() {
            addCriterion("DIC_TABLE is not null");
            return (Criteria) this;
        }

        public Criteria andDicTableEqualTo(String value) {
            addCriterion("DIC_TABLE =", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableNotEqualTo(String value) {
            addCriterion("DIC_TABLE <>", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableGreaterThan(String value) {
            addCriterion("DIC_TABLE >", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_TABLE >=", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableLessThan(String value) {
            addCriterion("DIC_TABLE <", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableLessThanOrEqualTo(String value) {
            addCriterion("DIC_TABLE <=", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableLike(String value) {
            addCriterion("DIC_TABLE like", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableNotLike(String value) {
            addCriterion("DIC_TABLE not like", value, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableIn(List<String> values) {
            addCriterion("DIC_TABLE in", values, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableNotIn(List<String> values) {
            addCriterion("DIC_TABLE not in", values, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableBetween(String value1, String value2) {
            addCriterion("DIC_TABLE between", value1, value2, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableNotBetween(String value1, String value2) {
            addCriterion("DIC_TABLE not between", value1, value2, "dicTable");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyIsNull() {
            addCriterion("DIC_TABLE_KEY is null");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyIsNotNull() {
            addCriterion("DIC_TABLE_KEY is not null");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyEqualTo(String value) {
            addCriterion("DIC_TABLE_KEY =", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyNotEqualTo(String value) {
            addCriterion("DIC_TABLE_KEY <>", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyGreaterThan(String value) {
            addCriterion("DIC_TABLE_KEY >", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_TABLE_KEY >=", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyLessThan(String value) {
            addCriterion("DIC_TABLE_KEY <", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyLessThanOrEqualTo(String value) {
            addCriterion("DIC_TABLE_KEY <=", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyLike(String value) {
            addCriterion("DIC_TABLE_KEY like", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyNotLike(String value) {
            addCriterion("DIC_TABLE_KEY not like", value, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyIn(List<String> values) {
            addCriterion("DIC_TABLE_KEY in", values, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyNotIn(List<String> values) {
            addCriterion("DIC_TABLE_KEY not in", values, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyBetween(String value1, String value2) {
            addCriterion("DIC_TABLE_KEY between", value1, value2, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableKeyNotBetween(String value1, String value2) {
            addCriterion("DIC_TABLE_KEY not between", value1, value2, "dicTableKey");
            return (Criteria) this;
        }

        public Criteria andDicTableTextIsNull() {
            addCriterion("DIC_TABLE_TEXT is null");
            return (Criteria) this;
        }

        public Criteria andDicTableTextIsNotNull() {
            addCriterion("DIC_TABLE_TEXT is not null");
            return (Criteria) this;
        }

        public Criteria andDicTableTextEqualTo(String value) {
            addCriterion("DIC_TABLE_TEXT =", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextNotEqualTo(String value) {
            addCriterion("DIC_TABLE_TEXT <>", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextGreaterThan(String value) {
            addCriterion("DIC_TABLE_TEXT >", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_TABLE_TEXT >=", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextLessThan(String value) {
            addCriterion("DIC_TABLE_TEXT <", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextLessThanOrEqualTo(String value) {
            addCriterion("DIC_TABLE_TEXT <=", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextLike(String value) {
            addCriterion("DIC_TABLE_TEXT like", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextNotLike(String value) {
            addCriterion("DIC_TABLE_TEXT not like", value, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextIn(List<String> values) {
            addCriterion("DIC_TABLE_TEXT in", values, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextNotIn(List<String> values) {
            addCriterion("DIC_TABLE_TEXT not in", values, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextBetween(String value1, String value2) {
            addCriterion("DIC_TABLE_TEXT between", value1, value2, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicTableTextNotBetween(String value1, String value2) {
            addCriterion("DIC_TABLE_TEXT not between", value1, value2, "dicTableText");
            return (Criteria) this;
        }

        public Criteria andDicJsonIsNull() {
            addCriterion("DIC_JSON is null");
            return (Criteria) this;
        }

        public Criteria andDicJsonIsNotNull() {
            addCriterion("DIC_JSON is not null");
            return (Criteria) this;
        }

        public Criteria andDicJsonEqualTo(String value) {
            addCriterion("DIC_JSON =", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonNotEqualTo(String value) {
            addCriterion("DIC_JSON <>", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonGreaterThan(String value) {
            addCriterion("DIC_JSON >", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonGreaterThanOrEqualTo(String value) {
            addCriterion("DIC_JSON >=", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonLessThan(String value) {
            addCriterion("DIC_JSON <", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonLessThanOrEqualTo(String value) {
            addCriterion("DIC_JSON <=", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonLike(String value) {
            addCriterion("DIC_JSON like", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonNotLike(String value) {
            addCriterion("DIC_JSON not like", value, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonIn(List<String> values) {
            addCriterion("DIC_JSON in", values, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonNotIn(List<String> values) {
            addCriterion("DIC_JSON not in", values, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonBetween(String value1, String value2) {
            addCriterion("DIC_JSON between", value1, value2, "dicJson");
            return (Criteria) this;
        }

        public Criteria andDicJsonNotBetween(String value1, String value2) {
            addCriterion("DIC_JSON not between", value1, value2, "dicJson");
            return (Criteria) this;
        }

        public Criteria andColFormatIsNull() {
            addCriterion("COL_FORMAT is null");
            return (Criteria) this;
        }

        public Criteria andColFormatIsNotNull() {
            addCriterion("COL_FORMAT is not null");
            return (Criteria) this;
        }

        public Criteria andColFormatEqualTo(String value) {
            addCriterion("COL_FORMAT =", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatNotEqualTo(String value) {
            addCriterion("COL_FORMAT <>", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatGreaterThan(String value) {
            addCriterion("COL_FORMAT >", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatGreaterThanOrEqualTo(String value) {
            addCriterion("COL_FORMAT >=", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatLessThan(String value) {
            addCriterion("COL_FORMAT <", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatLessThanOrEqualTo(String value) {
            addCriterion("COL_FORMAT <=", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatLike(String value) {
            addCriterion("COL_FORMAT like", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatNotLike(String value) {
            addCriterion("COL_FORMAT not like", value, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatIn(List<String> values) {
            addCriterion("COL_FORMAT in", values, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatNotIn(List<String> values) {
            addCriterion("COL_FORMAT not in", values, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatBetween(String value1, String value2) {
            addCriterion("COL_FORMAT between", value1, value2, "colFormat");
            return (Criteria) this;
        }

        public Criteria andColFormatNotBetween(String value1, String value2) {
            addCriterion("COL_FORMAT not between", value1, value2, "colFormat");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}